package com.xyh.service.impl;

import com.xyh.dao.PermissionDao;
import com.xyh.po.Permission;
import com.xyh.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:kyle
 * @Date:2020/12/21 - 10:55
 * @Project:spring_demo1
 * @Package:com.xyh.service.impl
 * @Version:1.0
 */
@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionDao permissionDao;

    @Override
    public List<Permission> findPermissionsByUser(String username) {

        return permissionDao.findPermissionsByUser(username);
    }
}
